package com.fount4j.generator.config;

import java.util.ArrayList;

/**
 * Dao 类配置
 *
 * @author Morven 2016/12/21
 */
public class DaoConfig extends PropertyHolder {
    /** 是否生成 */
    private Boolean enable = true;
    /** Dao 类所属包 */
    private String packageName;
    /** Dao 类文件路径 */
    private String resourcePath;
    /** Dao 类基于 entity 类的名字后缀，默认为 Dao */
    private String nameSuffix = "Dao";
    /** 自定义的需要导入的包 */
    protected ArrayList<String> imports;

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getResourcePath() {
        return resourcePath;
    }

    public void setResourcePath(String resourcePath) {
        this.resourcePath = resourcePath;
    }

    public String getNameSuffix() {
        return nameSuffix;
    }

    public void setNameSuffix(String nameSuffix) {
        this.nameSuffix = nameSuffix;
    }

    public boolean isEnable() {
        return enable != null && enable;
    }

    public ArrayList<String> getImports() {
        return imports;
    }

    public void setImports(ArrayList<String> imports) {
        this.imports = imports;
    }
}
